package com.jrx.anytxn.accounting.job.glinterface.step;


import com.jrx.anytxn.accounting.bean.GlInterfaceBean;
import com.jrx.anytxn.accounting.service.ITlGlInterfaceInfoService;
import com.jrx.anytxn.transaction.entity.TlGlInterfaceInfo;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName glInterfaceProcessor
 * 总账流水处理过程
 *
 * @author yf
 * date  2019/9/11 0011
 * @version V1.0
 **/
@Service
public class GlInterfaceProcessor implements ItemProcessor<TlGlInterfaceInfo, GlInterfaceBean> {
    @Autowired
    private ITlGlInterfaceInfoService tlGlInterfaceInfoService;


    @Override
    public GlInterfaceBean process(TlGlInterfaceInfo tlGlInterfaceInfo) throws Exception {
        return tlGlInterfaceInfoService.getGlInterfaceBean(tlGlInterfaceInfo);
    }


}
